package org.ideo.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.config.Result;
import org.apache.struts2.dispatcher.ServletDispatcherResult;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.ideo.model.User;

@Result(name="success", type=ServletDispatcherResult.class, value="Member.jsp")
public class ConfirmationAction implements ServletRequestAware {
	private User user;
    
	private HttpServletRequest request;
    
	public String execute() throws Exception {
		user = (User) request.getSession(true).getAttribute("user");		
		return "success";
    }

    public void setServletRequest(HttpServletRequest httpServletRequest) {
    	request = httpServletRequest;
    }
    
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
